package com.bw.kotlindemo.kotlin

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.bw.kotlindemo.R
import com.bw.kotlindemo.java.activity.LiveListActivity
import com.bw.kotlindemo.kotlin.view.activity.KLiveListActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<Button>(R.id.bt_java).setOnClickListener{
            startActivity(Intent(this, LiveListActivity::class.java))
        }
        findViewById<Button>(R.id.bt_kotlin).setOnClickListener{
            startActivity(Intent(this, KLiveListActivity::class.java))
        }
    }
}